package BehavioralPattern.Command.Extend;

/**
 * 
 * @author Xinz
 *
 * 看电视的人
 */
public class Client {
	public static void main(String[] args) {
		Receiver receiver = new Receiver();
		Command commandOne = new ConcreteCommandOne(receiver);
		Command commandTwo = new ConcreteCommandTwo(receiver);
		Invoker invoker = new Invoker();
		invoker.add(commandOne);
		invoker.add(commandTwo);
		invoker.action();
	}
}
